﻿#region Using directives

using System;
using System.Data;
using System.Data.Common;
using System.Collections;
using System.Collections.Generic;

using NetROS.Tiers.Entities;
using NetROS.Tiers.Data;

#endregion

namespace NetROS.Tiers.Data.Bases
{	
	///<summary>
	/// This class is the base class for any <see cref="KnjizenjeProviderBase"/> implementation.
	/// It exposes CRUD methods as well as selecting on index, foreign keys and custom stored procedures.
	///</summary>
	public abstract partial class KnjizenjeProviderBaseCore : EntityProviderBase<NetROS.Tiers.Entities.Knjizenje, NetROS.Tiers.Entities.KnjizenjeKey>
	{		
		#region Get from Many To Many Relationship Functions
		#endregion	
		
		#region Delete Methods

		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to delete.</param>
		/// <returns>Returns true if operation suceeded.</returns>
		public override bool Delete(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeKey key)
		{
			return Delete(transactionManager, key.ID);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public bool Delete(System.Int32 iD)
		{
			return Delete(null, iD);
		}
		
		/// <summary>
		/// 	Deletes a row from the DataSource.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD">. Primary Key.</param>
		/// <remarks>Deletes based on primary key(s).</remarks>
		/// <returns>Returns true if operation suceeded.</returns>
		public abstract bool Delete(TransactionManager transactionManager, System.Int32 iD);		
		
		#endregion Delete Methods
		
		#region Get By Foreign Key Functions
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		FK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="iDUserCreated"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(System.Int32 iDUserCreated)
		{
			int count = -1;
			return GetByIDUserCreated(iDUserCreated, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		FK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated)
		{
			int count = -1;
			return GetByIDUserCreated(transactionManager, iDUserCreated, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		FK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserCreated(transactionManager, iDUserCreated, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		fK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserCreated"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(System.Int32 iDUserCreated, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserCreated(null, iDUserCreated, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		fK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(System.Int32 iDUserCreated, int start, int pageLength,out int count)
		{
			return GetByIDUserCreated(null, iDUserCreated, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik key.
		///		FK_tblKnjizenje_tblDjelatnik Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserCreated"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserCreated(TransactionManager transactionManager, System.Int32 iDUserCreated, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		FK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="iDUserModified"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(System.Int32 iDUserModified)
		{
			int count = -1;
			return GetByIDUserModified(iDUserModified, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		FK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified)
		{
			int count = -1;
			return GetByIDUserModified(transactionManager, iDUserModified, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		FK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUserModified(transactionManager, iDUserModified, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		fK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserModified"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(System.Int32 iDUserModified, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUserModified(null, iDUserModified, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		fK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUserModified"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(System.Int32 iDUserModified, int start, int pageLength,out int count)
		{
			return GetByIDUserModified(null, iDUserModified, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik1 key.
		///		FK_tblKnjizenje_tblDjelatnik1 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUserModified"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUserModified(TransactionManager transactionManager, System.Int32 iDUserModified, int start, int pageLength, out int count);
		
	
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		FK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="iDUser"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(System.Int32 iDUser)
		{
			int count = -1;
			return GetByIDUser(iDUser, 0,int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		FK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUser"></param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		/// <remarks></remarks>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(TransactionManager transactionManager, System.Int32 iDUser)
		{
			int count = -1;
			return GetByIDUser(transactionManager, iDUser, 0, int.MaxValue, out count);
		}
		
			/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		FK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUser"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		///  <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(TransactionManager transactionManager, System.Int32 iDUser, int start, int pageLength)
		{
			int count = -1;
			return GetByIDUser(transactionManager, iDUser, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		fK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUser"></param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(System.Int32 iDUser, int start, int pageLength)
		{
			int count =  -1;
			return GetByIDUser(null, iDUser, start, pageLength,out count);	
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		fK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="iDUser"></param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(System.Int32 iDUser, int start, int pageLength,out int count)
		{
			return GetByIDUser(null, iDUser, start, pageLength, out count);	
		}
						
		/// <summary>
		/// 	Gets rows from the datasource based on the FK_tblKnjizenje_tblDjelatnik2 key.
		///		FK_tblKnjizenje_tblDjelatnik2 Description: 
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDUser"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns a typed collection of NetROS.Tiers.Entities.Knjizenje objects.</returns>
		public abstract NetROS.Tiers.Entities.TList<Knjizenje> GetByIDUser(TransactionManager transactionManager, System.Int32 iDUser, int start, int pageLength, out int count);
		
		#endregion

		#region Get By Index Functions
		
		/// <summary>
		/// 	Gets a row from the DataSource based on its primary key.
		/// </summary>
		/// <param name="transactionManager">A <see cref="TransactionManager"/> object.</param>
		/// <param name="key">The unique identifier of the row to retrieve.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <returns>Returns an instance of the Entity class.</returns>
		public override NetROS.Tiers.Entities.Knjizenje Get(TransactionManager transactionManager, NetROS.Tiers.Entities.KnjizenjeKey key, int start, int pageLength)
		{
			return GetByID(transactionManager, key.ID, start, pageLength);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDStatus(null,iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatus(null, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus)
		{
			int count = -1;
			return GetByIDStatus(transactionManager, iDStatus, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus, int start, int pageLength)
		{
			int count = -1;
			return GetByIDStatus(transactionManager, iDStatus, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(System.Int32 iDStatus, int start, int pageLength, out int count)
		{
			return GetByIDStatus(null, iDStatus, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the ixKnjizenjeIDStatus index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iDStatus"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/> class.</returns>
		public abstract NetROS.Tiers.Entities.TList<Knjizenje> GetByIDStatus(TransactionManager transactionManager, System.Int32 iDStatus, int start, int pageLength, out int count);
						
		/// <summary>
		/// 	Gets rows from the datasource based on the primary key PK_tblKnjizenje index.
		/// </summary>
		/// <param name="iD"></param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public NetROS.Tiers.Entities.Knjizenje GetByID(System.Int32 iD)
		{
			int count = -1;
			return GetByID(null,iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenje index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public NetROS.Tiers.Entities.Knjizenje GetByID(System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(null, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenje index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public NetROS.Tiers.Entities.Knjizenje GetByID(TransactionManager transactionManager, System.Int32 iD)
		{
			int count = -1;
			return GetByID(transactionManager, iD, 0, int.MaxValue, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenje index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public NetROS.Tiers.Entities.Knjizenje GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength)
		{
			int count = -1;
			return GetByID(transactionManager, iD, start, pageLength, out count);
		}
		
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenje index.
		/// </summary>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">out parameter to get total records for query</param>
		/// <remarks></remarks>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public NetROS.Tiers.Entities.Knjizenje GetByID(System.Int32 iD, int start, int pageLength, out int count)
		{
			return GetByID(null, iD, start, pageLength, out count);
		}
		
				
		/// <summary>
		/// 	Gets rows from the datasource based on the PK_tblKnjizenje index.
		/// </summary>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="iD"></param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="count">The total number of records.</param>
		/// <returns>Returns an instance of the <see cref="NetROS.Tiers.Entities.Knjizenje"/> class.</returns>
		public abstract NetROS.Tiers.Entities.Knjizenje GetByID(TransactionManager transactionManager, System.Int32 iD, int start, int pageLength, out int count);
						
		#endregion "Get By Index Functions"
	
		#region Custom Methods
		
		
		#region _tblKnjizenje_RacuneMPUtrzak_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzak_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, ref System.Int32? @ID)
		{
			 RacuneMPUtrzak_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzak_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, ref System.Int32? @ID)
		{
			 RacuneMPUtrzak_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, @IDOrg, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzak_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, ref System.Int32? @ID)
		{
			 RacuneMPUtrzak_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void RacuneMPUtrzak_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciVMRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciRacuneRobnoUKnjizenje 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneRobnoUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneRobnoUKnjizenje(System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			return PrebaciRacuneRobnoUKnjizenje(null, 0, int.MaxValue , @DatumOd, @DatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneRobnoUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneRobnoUKnjizenje(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			return PrebaciRacuneRobnoUKnjizenje(null, start, pageLength , @DatumOd, @DatumDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneRobnoUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneRobnoUKnjizenje(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			return PrebaciRacuneRobnoUKnjizenje(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneRobnoUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciRacuneRobnoUKnjizenje(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo);
		
		#endregion
		
		#region _tblKnjizenje_OtvoriKnjizenje 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_OtvoriKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void OtvoriKnjizenje(System.Int32? @IDKnjizenja)
		{
			 OtvoriKnjizenje(null, 0, int.MaxValue , @IDKnjizenja);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_OtvoriKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void OtvoriKnjizenje(int start, int pageLength, System.Int32? @IDKnjizenja)
		{
			 OtvoriKnjizenje(null, start, pageLength , @IDKnjizenja);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_OtvoriKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void OtvoriKnjizenje(TransactionManager transactionManager, System.Int32? @IDKnjizenja)
		{
			 OtvoriKnjizenje(transactionManager, 0, int.MaxValue , @IDKnjizenja);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_OtvoriKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void OtvoriKnjizenje(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDKnjizenja);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciObracunKamataUKnjizenje 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciObracunKamataUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> PrebaciObracunKamataUKnjizenje(System.Int32? @IDObracunKamate)
		{
			return PrebaciObracunKamataUKnjizenje(null, 0, int.MaxValue , @IDObracunKamate);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciObracunKamataUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> PrebaciObracunKamataUKnjizenje(int start, int pageLength, System.Int32? @IDObracunKamate)
		{
			return PrebaciObracunKamataUKnjizenje(null, start, pageLength , @IDObracunKamate);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciObracunKamataUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> PrebaciObracunKamataUKnjizenje(TransactionManager transactionManager, System.Int32? @IDObracunKamate)
		{
			return PrebaciObracunKamataUKnjizenje(transactionManager, 0, int.MaxValue , @IDObracunKamate);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciObracunKamataUKnjizenje' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public abstract TList<Knjizenje> PrebaciObracunKamataUKnjizenje(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracunKamate);
		
		#endregion
		
		#region _tblKnjizenje_StornoObracunKamataUKnjizenju 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_StornoObracunKamataUKnjizenju' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> StornoObracunKamataUKnjizenju(System.Int32? @IDObracunKamate)
		{
			return StornoObracunKamataUKnjizenju(null, 0, int.MaxValue , @IDObracunKamate);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_StornoObracunKamataUKnjizenju' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> StornoObracunKamataUKnjizenju(int start, int pageLength, System.Int32? @IDObracunKamate)
		{
			return StornoObracunKamataUKnjizenju(null, start, pageLength , @IDObracunKamate);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_StornoObracunKamataUKnjizenju' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public TList<Knjizenje> StornoObracunKamataUKnjizenju(TransactionManager transactionManager, System.Int32? @IDObracunKamate)
		{
			return StornoObracunKamataUKnjizenju(transactionManager, 0, int.MaxValue , @IDObracunKamate);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_StornoObracunKamataUKnjizenju' stored procedure. 
		/// </summary>
		/// <param name="IDObracunKamate"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="TList&lt;Knjizenje&gt;"/> instance.</returns>
		public abstract TList<Knjizenje> StornoObracunKamataUKnjizenju(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDObracunKamate);
		
		#endregion
		
		#region _tblKnjizenje_RacuneVPMPUtrzakRazdjeljeno_Period 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPMPUtrzakRazdjeljeno_Period' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPMPUtrzakRazdjeljeno_Period(System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			 RacuneVPMPUtrzakRazdjeljeno_Period(null, 0, int.MaxValue , @DatumOd, @DatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPMPUtrzakRazdjeljeno_Period' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPMPUtrzakRazdjeljeno_Period(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			 RacuneVPMPUtrzakRazdjeljeno_Period(null, start, pageLength , @DatumOd, @DatumDo);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPMPUtrzakRazdjeljeno_Period' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPMPUtrzakRazdjeljeno_Period(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo)
		{
			 RacuneVPMPUtrzakRazdjeljeno_Period(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPMPUtrzakRazdjeljeno_Period' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void RacuneVPMPUtrzakRazdjeljeno_Period(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo);
		
		#endregion
		
		#region _tblKnjizenje_PrijenosGodine 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrijenosGodine' stored procedure. 
		/// </summary>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="DatumPrijenosa"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrijenosGodine(System.Int32? @IDKlijent, System.String @Nalog, System.DateTime? @DatumPrijenosa, System.Int32? @Godina)
		{
			return PrijenosGodine(null, 0, int.MaxValue , @IDKlijent, @Nalog, @DatumPrijenosa, @Godina);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrijenosGodine' stored procedure. 
		/// </summary>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="DatumPrijenosa"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrijenosGodine(int start, int pageLength, System.Int32? @IDKlijent, System.String @Nalog, System.DateTime? @DatumPrijenosa, System.Int32? @Godina)
		{
			return PrijenosGodine(null, start, pageLength , @IDKlijent, @Nalog, @DatumPrijenosa, @Godina);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrijenosGodine' stored procedure. 
		/// </summary>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="DatumPrijenosa"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrijenosGodine(TransactionManager transactionManager, System.Int32? @IDKlijent, System.String @Nalog, System.DateTime? @DatumPrijenosa, System.Int32? @Godina)
		{
			return PrijenosGodine(transactionManager, 0, int.MaxValue , @IDKlijent, @Nalog, @DatumPrijenosa, @Godina);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrijenosGodine' stored procedure. 
		/// </summary>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="DatumPrijenosa"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrijenosGodine(TransactionManager transactionManager, int start, int pageLength , System.Int32? @IDKlijent, System.String @Nalog, System.DateTime? @DatumPrijenosa, System.Int32? @Godina);
		
		#endregion
		
		#region _tblKnjizenje_RacuneVPUtrzak_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzak_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			 RacuneVPUtrzak_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzak_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			 RacuneVPUtrzak_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzak_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			 RacuneVPUtrzak_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzak_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void RacuneVPUtrzak_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_RacuneVPUtrzakParcijalno_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzakParcijalno_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzakParcijalno_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneVPUtrzakParcijalno_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzakParcijalno_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzakParcijalno_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneVPUtrzakParcijalno_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzakParcijalno_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneVPUtrzakParcijalno_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneVPUtrzakParcijalno_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneVPUtrzakParcijalno_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void RacuneVPUtrzakParcijalno_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID)
		{
			return PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciMSRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_ZatvaranjeKlase4i7 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_ZatvaranjeKlase4i7' stored procedure. 
		/// </summary>
		/// <param name="KontoSume4"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume4na7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume8"> A <c>System.String</c> instance.</param>
		/// <param name="SifraSkladista"> A <c>System.String</c> instance.</param>
		/// <param name="VD"> A <c>System.String</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ZatvaranjeKlase4i7(System.String @KontoSume4, System.String @KontoSume4na7, System.String @KontoSume7, System.String @KontoSume8, System.String @SifraSkladista, System.String @VD, System.String @Nalog, System.Int32? @IDKlijent, System.Int32? @Godina)
		{
			return ZatvaranjeKlase4i7(null, 0, int.MaxValue , @KontoSume4, @KontoSume4na7, @KontoSume7, @KontoSume8, @SifraSkladista, @VD, @Nalog, @IDKlijent, @Godina);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_ZatvaranjeKlase4i7' stored procedure. 
		/// </summary>
		/// <param name="KontoSume4"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume4na7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume8"> A <c>System.String</c> instance.</param>
		/// <param name="SifraSkladista"> A <c>System.String</c> instance.</param>
		/// <param name="VD"> A <c>System.String</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ZatvaranjeKlase4i7(int start, int pageLength, System.String @KontoSume4, System.String @KontoSume4na7, System.String @KontoSume7, System.String @KontoSume8, System.String @SifraSkladista, System.String @VD, System.String @Nalog, System.Int32? @IDKlijent, System.Int32? @Godina)
		{
			return ZatvaranjeKlase4i7(null, start, pageLength , @KontoSume4, @KontoSume4na7, @KontoSume7, @KontoSume8, @SifraSkladista, @VD, @Nalog, @IDKlijent, @Godina);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_ZatvaranjeKlase4i7' stored procedure. 
		/// </summary>
		/// <param name="KontoSume4"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume4na7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume8"> A <c>System.String</c> instance.</param>
		/// <param name="SifraSkladista"> A <c>System.String</c> instance.</param>
		/// <param name="VD"> A <c>System.String</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader ZatvaranjeKlase4i7(TransactionManager transactionManager, System.String @KontoSume4, System.String @KontoSume4na7, System.String @KontoSume7, System.String @KontoSume8, System.String @SifraSkladista, System.String @VD, System.String @Nalog, System.Int32? @IDKlijent, System.Int32? @Godina)
		{
			return ZatvaranjeKlase4i7(transactionManager, 0, int.MaxValue , @KontoSume4, @KontoSume4na7, @KontoSume7, @KontoSume8, @SifraSkladista, @VD, @Nalog, @IDKlijent, @Godina);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_ZatvaranjeKlase4i7' stored procedure. 
		/// </summary>
		/// <param name="KontoSume4"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume4na7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume7"> A <c>System.String</c> instance.</param>
		/// <param name="KontoSume8"> A <c>System.String</c> instance.</param>
		/// <param name="SifraSkladista"> A <c>System.String</c> instance.</param>
		/// <param name="VD"> A <c>System.String</c> instance.</param>
		/// <param name="Nalog"> A <c>System.String</c> instance.</param>
		/// <param name="IDKlijent"> A <c>System.Int32?</c> instance.</param>
		/// <param name="Godina"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader ZatvaranjeKlase4i7(TransactionManager transactionManager, int start, int pageLength , System.String @KontoSume4, System.String @KontoSume4na7, System.String @KontoSume7, System.String @KontoSume8, System.String @SifraSkladista, System.String @VD, System.String @Nalog, System.Int32? @IDKlijent, System.Int32? @Godina);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciRacuneUKnjizenje_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneUKnjizenje_VratiIDKnjizenja(System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciRacuneUKnjizenje_VratiIDKnjizenja(null, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneUKnjizenje_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciRacuneUKnjizenje_VratiIDKnjizenja(null, start, pageLength , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciRacuneUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciRacuneUKnjizenje_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciRacuneUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_RacuneMPUtrzakParcijalni_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzakParcijalni_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzakParcijalni_VratiIDKnjizenja(System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneMPUtrzakParcijalni_VratiIDKnjizenja(null, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzakParcijalni_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzakParcijalni_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneMPUtrzakParcijalni_VratiIDKnjizenja(null, start, pageLength , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzakParcijalni_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public void RacuneMPUtrzakParcijalni_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID)
		{
			 RacuneMPUtrzakParcijalni_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @DatumOd, @DatumDo, @IDOrg, @IDKnjizenja, @DatumKreiranja, ref @DatumMax, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_RacuneMPUtrzakParcijalni_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="DatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="DatumDo"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="IDOrg"> A <c>System.Int32?</c> instance.</param>
		/// <param name="IDKnjizenja"> A <c>System.Int32?</c> instance.</param>
		/// <param name="DatumKreiranja"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="DatumMax"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		public abstract void RacuneMPUtrzakParcijalni_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @DatumOd, System.DateTime? @DatumDo, System.Int32? @IDOrg, System.Int32? @IDKnjizenja, System.DateTime? @DatumKreiranja, ref System.DateTime? @DatumMax, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(null, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(null, start, pageLength , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciMPRobnoUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#region _tblKnjizenje_PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja 
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(null, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(int start, int pageLength, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(null, start, pageLength , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
				
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public IDataReader PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID)
		{
			return PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(transactionManager, 0, int.MaxValue , @PeriodDatumOd, @PeriodDatumDo, ref @ID);
		}
		
		/// <summary>
		///	This method wrap the '_tblKnjizenje_PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja' stored procedure. 
		/// </summary>
		/// <param name="PeriodDatumOd"> A <c>System.DateTime?</c> instance.</param>
		/// <param name="PeriodDatumDo"> A <c>System.DateTime?</c> instance.</param>
			/// <param name="ID"> A <c>System.Int32?</c> instance.</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">Number of rows to return.</param>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <remark>This method is generate from a stored procedure.</remark>
		/// <returns>A <see cref="IDataReader"/> instance.</returns>
		public abstract IDataReader PrebaciMPRacuneUKnjizenje_VratiIDKnjizenja(TransactionManager transactionManager, int start, int pageLength , System.DateTime? @PeriodDatumOd, System.DateTime? @PeriodDatumDo, ref System.Int32? @ID);
		
		#endregion
		
		#endregion

		#region Helper Functions	
		
		/// <summary>
		/// Fill a NetROS.Tiers.Entities.TList&lt;Knjizenje&gt; From a DataReader.
		/// </summary>
		/// <param name="reader">Datareader</param>
		/// <param name="rows">The collection to fill</param>
		/// <param name="start">Row number at which to start reading, the first row is 0.</param>
		/// <param name="pageLength">number of rows.</param>
		/// <returns>a <see cref="NetROS.Tiers.Entities.TList&lt;Knjizenje&gt;"/></returns>
		public static NetROS.Tiers.Entities.TList<Knjizenje> Fill(IDataReader reader, NetROS.Tiers.Entities.TList<Knjizenje> rows, int start, int pageLength)
		{
		// advance to the starting row
		for (int i = 0; i < start; i++)
		{
			if (!reader.Read())
			return rows; // not enough rows, just return
		}
		for (int i = 0; i < pageLength; i++)
		{
			if (!reader.Read())
			break; // we are done
			string key = null;
			
			NetROS.Tiers.Entities.Knjizenje c = null;
			if (DataRepository.Provider.UseEntityFactory)
			{
			key = new System.Text.StringBuilder("Knjizenje")
			.Append("|").Append((reader.IsDBNull(((int)NetROS.Tiers.Entities.KnjizenjeColumn.ID - 1))?(int)0:(System.Int32)reader[((int)NetROS.Tiers.Entities.KnjizenjeColumn.ID - 1)]).ToString()).ToString();
			c = EntityManager.LocateOrCreate<Knjizenje>(
			key.ToString(), // EntityTrackingKey
			"Knjizenje",  //Creational Type
			DataRepository.Provider.EntityCreationalFactoryType,  //Factory used to create entity
			DataRepository.Provider.EnableEntityTracking); // Track this entity?
			}
			else
			{
			c = new NetROS.Tiers.Entities.Knjizenje();
			}
			
			if (!DataRepository.Provider.EnableEntityTracking ||
			c.EntityState == EntityState.Added ||
			(DataRepository.Provider.EnableEntityTracking &&
			((DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.PreserveChanges && c.EntityState == EntityState.Unchanged) ||
			(DataRepository.Provider.CurrentLoadPolicy == LoadPolicy.DiscardChanges && (c.EntityState == EntityState.Unchanged ||
								c.EntityState == EntityState.Changed)))))
						{
			c.SuppressEntityEvents = true;
			c.ID = (System.Int32)reader["ID"];
			c.Datum = (System.DateTime)reader["Datum"];
			c.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			c.IDUserModified = (System.Int32)reader["IDUserModified"];
			c.IDUser = (System.Int32)reader["IDUser"];
			c.DatumCreated = (System.DateTime)reader["DatumCreated"];
			c.DatumModified = (System.DateTime)reader["DatumModified"];
			c.IDStatus = (System.Int32)reader["IDStatus"];
			c.EntityTrackingKey = key;
			c.AcceptChanges();
			c.SuppressEntityEvents = false;
			}
			rows.Add(c);
		}
		return rows;
		}		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Knjizenje"/> object from the <see cref="IDataReader"/>.
		/// </summary>
		/// <param name="reader">The <see cref="IDataReader"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Knjizenje"/> object to refresh.</param>
		public static void RefreshEntity(IDataReader reader, NetROS.Tiers.Entities.Knjizenje entity)
		{
			if (!reader.Read()) return;
			
			entity.ID = (System.Int32)reader["ID"];
			entity.Datum = (System.DateTime)reader["Datum"];
			entity.IDUserCreated = (System.Int32)reader["IDUserCreated"];
			entity.IDUserModified = (System.Int32)reader["IDUserModified"];
			entity.IDUser = (System.Int32)reader["IDUser"];
			entity.DatumCreated = (System.DateTime)reader["DatumCreated"];
			entity.DatumModified = (System.DateTime)reader["DatumModified"];
			entity.IDStatus = (System.Int32)reader["IDStatus"];
			entity.AcceptChanges();
		}
		
		/// <summary>
		/// Refreshes the <see cref="NetROS.Tiers.Entities.Knjizenje"/> object from the <see cref="DataSet"/>.
		/// </summary>
		/// <param name="dataSet">The <see cref="DataSet"/> to read from.</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Knjizenje"/> object.</param>
		public static void RefreshEntity(DataSet dataSet, NetROS.Tiers.Entities.Knjizenje entity)
		{
			DataRow dataRow = dataSet.Tables[0].Rows[0];
			
			entity.ID = (System.Int32)dataRow["ID"];
			entity.Datum = (System.DateTime)dataRow["Datum"];
			entity.IDUserCreated = (System.Int32)dataRow["IDUserCreated"];
			entity.IDUserModified = (System.Int32)dataRow["IDUserModified"];
			entity.IDUser = (System.Int32)dataRow["IDUser"];
			entity.DatumCreated = (System.DateTime)dataRow["DatumCreated"];
			entity.DatumModified = (System.DateTime)dataRow["DatumModified"];
			entity.IDStatus = (System.Int32)dataRow["IDStatus"];
			entity.AcceptChanges();
		}
		#endregion 
		
		#region DeepLoad Methods
		/// <summary>
		/// Deep Loads the <see cref="IEntity"/> object with criteria based of the child 
		/// property collections only N Levels Deep based on the <see cref="DeepLoadType"/>.
		/// </summary>
		/// <remarks>
		/// Use this method with caution as it is possible to DeepLoad with Recursion and traverse an entire object graph.
		/// </remarks>
		/// <param name="transactionManager"><see cref="TransactionManager"/> object</param>
		/// <param name="entity">The <see cref="NetROS.Tiers.Entities.Knjizenje"/> object to load.</param>
		/// <param name="deep">Boolean. A flag that indicates whether to recursively save all Property Collection that are descendants of this instance. If True, saves the complete object graph below this object. If False, saves this object only. </param>
		/// <param name="deepLoadType">DeepLoadType Enumeration to Include/Exclude object property collections from Load.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Knjizenje Property Collection Type Array To Include or Exclude from Load</param>
		/// <param name="innerList">A collection of child types for easy access.</param>
	    /// <exception cref="ArgumentNullException">entity or childTypes is null.</exception>
	    /// <exception cref="ArgumentException">deepLoadType has invalid value.</exception>
		internal override void DeepLoad(TransactionManager transactionManager, NetROS.Tiers.Entities.Knjizenje entity, bool deep, DeepLoadType deepLoadType, System.Type[] childTypes, DeepSession innerList)
		{
			if(entity == null)
				return;

			#region IDUserCreatedSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserCreatedSource", deepLoadType, innerList) 
				&& entity.IDUserCreatedSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUserCreated;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserCreatedSource = tmpEntity;
				else
					entity.IDUserCreatedSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUserCreated);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserCreatedSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserCreatedSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserCreatedSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserCreatedSource

			#region IDUserModifiedSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserModifiedSource", deepLoadType, innerList) 
				&& entity.IDUserModifiedSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUserModified;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserModifiedSource = tmpEntity;
				else
					entity.IDUserModifiedSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUserModified);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserModifiedSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserModifiedSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserModifiedSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserModifiedSource

			#region IDUserSource	
			if (CanDeepLoad(entity, "Djelatnik|IDUserSource", deepLoadType, innerList) 
				&& entity.IDUserSource == null)
			{
				object[] pkItems = new object[1];
				pkItems[0] = entity.IDUser;
				Djelatnik tmpEntity = EntityManager.LocateEntity<Djelatnik>(EntityLocator.ConstructKeyFromPkItems(typeof(Djelatnik), pkItems), DataRepository.Provider.EnableEntityTracking);
				if (tmpEntity != null)
					entity.IDUserSource = tmpEntity;
				else
					entity.IDUserSource = DataRepository.DjelatnikProvider.GetByID(transactionManager, entity.IDUser);		
				
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IDUserSource' loaded. key " + entity.EntityTrackingKey);
				#endif 
				
				if (deep && entity.IDUserSource != null)
				{
					innerList.SkipChildren = true;
					DataRepository.DjelatnikProvider.DeepLoad(transactionManager, entity.IDUserSource, deep, deepLoadType, childTypes, innerList);
					innerList.SkipChildren = false;
				}
					
			}
			#endregion IDUserSource
			
			//used to hold DeepLoad method delegates and fire after all the local children have been loaded.
			Dictionary<string, KeyValuePair<Delegate, object>> deepHandles = new Dictionary<string, KeyValuePair<Delegate, object>>();
			// Deep load child collections  - Call GetByID methods when available
			
			#region IzvadakCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<Izvadak>|IzvadakCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'IzvadakCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.IzvadakCollection = DataRepository.IzvadakProvider.GetByIDKnjizenje(transactionManager, entity.ID);

				if (deep && entity.IzvadakCollection.Count > 0)
				{
					deepHandles.Add("IzvadakCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<Izvadak>) DataRepository.IzvadakProvider.DeepLoad,
						new object[] { transactionManager, entity.IzvadakCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			#region KnjizenjeStavkaCollection
			//Relationship Type One : Many
			if (CanDeepLoad(entity, "List<KnjizenjeStavka>|KnjizenjeStavkaCollection", deepLoadType, innerList)) 
			{
				#if NETTIERS_DEBUG
				System.Diagnostics.Debug.WriteLine("- property 'KnjizenjeStavkaCollection' loaded. key " + entity.EntityTrackingKey);
				#endif 

				entity.KnjizenjeStavkaCollection = DataRepository.KnjizenjeStavkaProvider.GetByIDKnjizenja(transactionManager, entity.ID);

				if (deep && entity.KnjizenjeStavkaCollection.Count > 0)
				{
					deepHandles.Add("KnjizenjeStavkaCollection",
						new KeyValuePair<Delegate, object>((DeepLoadHandle<KnjizenjeStavka>) DataRepository.KnjizenjeStavkaProvider.DeepLoad,
						new object[] { transactionManager, entity.KnjizenjeStavkaCollection, deep, deepLoadType, childTypes, innerList }
					));
				}
			}		
			#endregion 
			
			
			//Fire all DeepLoad Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles.Values)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			deepHandles = null;
		}
		
		#endregion 
		
		#region DeepSave Methods

		/// <summary>
		/// Deep Save the entire object graph of the NetROS.Tiers.Entities.Knjizenje object with criteria based of the child 
		/// Type property array and DeepSaveType.
		/// </summary>
		/// <param name="transactionManager">The transaction manager.</param>
		/// <param name="entity">NetROS.Tiers.Entities.Knjizenje instance</param>
		/// <param name="deepSaveType">DeepSaveType Enumeration to Include/Exclude object property collections from Save.</param>
		/// <param name="childTypes">NetROS.Tiers.Entities.Knjizenje Property Collection Type Array To Include or Exclude from Save</param>
		/// <param name="innerList">A Hashtable of child types for easy access.</param>
		internal override bool DeepSave(TransactionManager transactionManager, NetROS.Tiers.Entities.Knjizenje entity, DeepSaveType deepSaveType, System.Type[] childTypes, DeepSession innerList)
		{	
			if (entity == null)
				return false;
							
			#region Composite Parent Properties
			//Save Source Composite Properties, however, don't call deep save on them.  
			//So they only get saved a single level deep.
			
			#region IDUserCreatedSource
			if (CanDeepSave(entity, "Djelatnik|IDUserCreatedSource", deepSaveType, innerList) 
				&& entity.IDUserCreatedSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserCreatedSource);
				entity.IDUserCreated = entity.IDUserCreatedSource.ID;
			}
			#endregion 
			
			#region IDUserModifiedSource
			if (CanDeepSave(entity, "Djelatnik|IDUserModifiedSource", deepSaveType, innerList) 
				&& entity.IDUserModifiedSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserModifiedSource);
				entity.IDUserModified = entity.IDUserModifiedSource.ID;
			}
			#endregion 
			
			#region IDUserSource
			if (CanDeepSave(entity, "Djelatnik|IDUserSource", deepSaveType, innerList) 
				&& entity.IDUserSource != null)
			{
				DataRepository.DjelatnikProvider.Save(transactionManager, entity.IDUserSource);
				entity.IDUser = entity.IDUserSource.ID;
			}
			#endregion 
			#endregion Composite Parent Properties

			// Save Root Entity through Provider
			if (!entity.IsDeleted)
				this.Save(transactionManager, entity);
			
			//used to hold DeepSave method delegates and fire after all the local children have been saved.
			Dictionary<Delegate, object> deepHandles = new Dictionary<Delegate, object>();
	
			#region List<Izvadak>
				if (CanDeepSave(entity.IzvadakCollection, "List<Izvadak>|IzvadakCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(Izvadak child in entity.IzvadakCollection)
					{
						if(child.IDKnjizenjeSource != null)
							child.IDKnjizenje = child.IDKnjizenjeSource.ID;
						else
							child.IDKnjizenje = entity.ID;

					}

					if (entity.IzvadakCollection.Count > 0 || entity.IzvadakCollection.DeletedItems.Count > 0)
					{
						DataRepository.IzvadakProvider.Save(transactionManager, entity.IzvadakCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< Izvadak >) DataRepository.IzvadakProvider.DeepSave,
							new object[] { transactionManager, entity.IzvadakCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
	
			#region List<KnjizenjeStavka>
				if (CanDeepSave(entity.KnjizenjeStavkaCollection, "List<KnjizenjeStavka>|KnjizenjeStavkaCollection", deepSaveType, innerList)) 
				{	
					// update each child parent id with the real parent id (mostly used on insert)
					foreach(KnjizenjeStavka child in entity.KnjizenjeStavkaCollection)
					{
						if(child.IDKnjizenjaSource != null)
							child.IDKnjizenja = child.IDKnjizenjaSource.ID;
						else
							child.IDKnjizenja = entity.ID;

					}

					if (entity.KnjizenjeStavkaCollection.Count > 0 || entity.KnjizenjeStavkaCollection.DeletedItems.Count > 0)
					{
						DataRepository.KnjizenjeStavkaProvider.Save(transactionManager, entity.KnjizenjeStavkaCollection);
						
						deepHandles.Add(
							(DeepSaveHandle< KnjizenjeStavka >) DataRepository.KnjizenjeStavkaProvider.DeepSave,
							new object[] { transactionManager, entity.KnjizenjeStavkaCollection, deepSaveType, childTypes, innerList }
						);
					}
				} 
			#endregion 
				
			//Fire all DeepSave Items
			foreach(KeyValuePair<Delegate, object> pair in deepHandles)
		    {
                pair.Key.DynamicInvoke((object[])pair.Value);
		    }
			
			// Save Root Entity through Provider, if not already saved in delete mode
			if (entity.IsDeleted)
				this.Save(transactionManager, entity);
				

			deepHandles = null;
						
			return true;
		}
		#endregion
	} // end class
	
	#region KnjizenjeChildEntityTypes
	
	///<summary>
	/// Enumeration used to expose the different child entity types 
	/// for child properties in <c>NetROS.Tiers.Entities.Knjizenje</c>
	///</summary>
	public enum KnjizenjeChildEntityTypes
	{
		
		///<summary>
		/// Composite Property for <c>Djelatnik</c> at IDUserCreatedSource
		///</summary>
		[ChildEntityType(typeof(Djelatnik))]
		Djelatnik,
	
		///<summary>
		/// Collection of <c>Knjizenje</c> as OneToMany for IzvadakCollection
		///</summary>
		[ChildEntityType(typeof(TList<Izvadak>))]
		IzvadakCollection,

		///<summary>
		/// Collection of <c>Knjizenje</c> as OneToMany for KnjizenjeStavkaCollection
		///</summary>
		[ChildEntityType(typeof(TList<KnjizenjeStavka>))]
		KnjizenjeStavkaCollection,
	}
	
	#endregion KnjizenjeChildEntityTypes
	
	#region KnjizenjeFilterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="SqlFilterBuilder&lt;KnjizenjeColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Knjizenje"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class KnjizenjeFilterBuilder : SqlFilterBuilder<KnjizenjeColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the KnjizenjeFilterBuilder class.
		/// </summary>
		public KnjizenjeFilterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public KnjizenjeFilterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeFilterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public KnjizenjeFilterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion KnjizenjeFilterBuilder
	
	#region KnjizenjeParameterBuilder
	
	/// <summary>
	/// A strongly-typed instance of the <see cref="ParameterizedSqlFilterBuilder&lt;KnjizenjeColumn&gt;"/> class
	/// that is used exclusively with a <see cref="Knjizenje"/> object.
	/// </summary>
	[CLSCompliant(true)]
	public class KnjizenjeParameterBuilder : ParameterizedSqlFilterBuilder<KnjizenjeColumn>
	{
		#region Constructors

		/// <summary>
		/// Initializes a new instance of the KnjizenjeParameterBuilder class.
		/// </summary>
		public KnjizenjeParameterBuilder() : base() { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		public KnjizenjeParameterBuilder(bool ignoreCase) : base(ignoreCase) { }

		/// <summary>
		/// Initializes a new instance of the KnjizenjeParameterBuilder class.
		/// </summary>
		/// <param name="ignoreCase">Specifies whether to create case-insensitive statements.</param>
		/// <param name="useAnd">Specifies whether to combine statements using AND or OR.</param>
		public KnjizenjeParameterBuilder(bool ignoreCase, bool useAnd) : base(ignoreCase, useAnd) { }

		#endregion Constructors
	}

	#endregion KnjizenjeParameterBuilder
} // end namespace
